from typing import Optional, Union

from pydantic import BaseModel


class MsgCreateForm(BaseModel):
    content: Union[str, None] = None
    kind: Union[str, None] = None
    addr: Union[str, None] = None


class MsgDeleteForm(BaseModel):
    id: int = None
    kind: str = None
    addr: str = None
